﻿@{
    Layout = "~/views/Shared/views_Layout.cshtml";
} 
@model FTchinaMVC.Models.Book

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Book</legend>

        @Html.HiddenFor(model => model.BookID)

        <div class="editor-label">
            @Html.LabelFor(model => model.BookName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BookName)
            @Html.ValidationMessageFor(model => model.BookName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Author)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Author)
            @Html.ValidationMessageFor(model => model.Author)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Publisher)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.Publisher)
            @Html.ValidationMessageFor(model => model.Publisher)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Remark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Remark)
            @Html.ValidationMessageFor(model => model.Remark)
        </div>

       
    </fieldset>
}

<p>
     <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-ok'" href="#" onclick="$('form').submit()">确定</a>
      @Html.ActionLink("取消", "Index", null,
                        new Dictionary<string, object>  {   
							{ "class", "easyui-linkbutton" }, 
                            
							{"data-options", "plain:true,iconCls:'icon-undo'"} ,
                          	})
</p>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
     <script src="/Scripts/easyui/jquery.easyui.min.js"></script>
 
}
